/*
 * @Author: 谢子健 1075010289@qq.com
 * @Date: 2024-05-12 08:54:03
 * @LastEditors: 谢子健 1075010289@qq.com
 * @LastEditTime: 2024-05-12 08:54:19
 * @FilePath: \project\commitlint.config.cjs
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
module.exports = {
    ignores: [(commit) => commit.includes('init')],
    extends: ['@commitlint/config-conventional'],
    rules: {
      'body-leading-blank': [2, 'always'],
      'footer-leading-blank': [1, 'always'],
      'header-max-length': [2, 'always', 108],
      'subject-empty': [2, 'never'],
      'type-empty': [2, 'never'],
      'subject-case': [0],
    },
  }
  